﻿using Microsoft.Xna.Framework;

namespace Brain.IO
{
    public class BrainImageLoadOptions
    {
        /// <summary>
        /// If it should apply the Color Key, changing the Pixels that have the
        /// ColorKeyColor(default (255, 0, 255, 255) ) to Transparent
        /// </summary>
        public bool ColorKeyEnabled = true;

        /// <summary>
        /// Color to look at the pixels and change for Transparent
        /// </summary>
        public Color ColorKeyColor = new Color(255, 0, 255, 255);

        /// <summary>
        /// None ImageOptions, just Load It
        /// </summary>
        public static BrainImageLoadOptions None
        {
            get { return null; }
        }
        /// <summary>
        /// Apply Color Key, on default color PINK ( 255; 0; 255; 255 ) ---
        /// Pixels of this color will be turned Transparent ---
        /// BE AWARE, that enabling this will consume a lot of processment, depending
        /// on the size of your texture. Test against 1 million pixels(1024*1024) is not really
        /// fast in any processor...
        /// </summary>
        public static BrainImageLoadOptions ColorKey
        {
            get { return new BrainImageLoadOptions(); }
        }
    }
}
